{$extend "tmpl.master.html" $} {$/ NOTE: this template (and tmpl.master.html that it inherits from) intentionally mixes long-form and short-form tags purely for illustration purposes. you should probably pick one style or the other for your templates. :) /$} {$: "#content" | userdetails = $.full_name ? "#userdetails" : "#nouser" }
This is how a grips Template works.
{$% Here's how to put in some completely raw $} {$/ unparsed /$} content! %$}
Welcome back, {$=~h full_name $}!
{$} {$= @info $}{$= @which_controls $}
{$} {$: "#info" }{$= $.info $}
{$} {$: "#logout" } Logout {$} {$: "#links" | fave[-1..6] = $.favenum ? "*" | partychoice["yes","no","maybe"] = $.mychoice ? "X" : " " }-no links yet-
{$} {$: "#footer" } {$} {$: "#styles" } {$= @"tmpl.master.html#styles" $} {$}